package Chapter6;

public class Example15 {
	public static void main(String[] args) {
		System.out.println("绝对值"+Math.abs(-1));
		System.out.println("大于参数的最小整数"+Math.ceil(5.8));
		System.out.println("小于参数的最大整数"+Math.floor(-2.6));
		System.out.println("四舍五入"+Math.round(6.2));
		System.out.println("较大值"+Math.max(9.8, 5.2));
		System.out.println("较小值"+Math.min(8.5, 4.0));
		System.out.println("生成一个大于等于0.0小于1.0的随机值"+Math.random());
	}

}
